package com.woniu.springbootshiro.service;

import com.woniu.springbootshiro.mapper.SetMapper;
import com.woniu.springbootshiro.pojo.Set;
import com.woniu.springbootshiro.pojo.SetLight;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetService {
    @Autowired
    private SetMapper setMapper;

public List<Set> queryAllLamp(){
    return setMapper.queryAllLamp();
}
public int delLamp(Integer zid){
    return setMapper.deleteByPrimaryKey(zid);
}
public List<Set> queryBad(){
    return setMapper.queryBad();
}

}
